<template>
    <el-popconfirm :title="text" @confirm="$emit('onconfirm')">
        <template #reference>
            <span class="deletetextbutton">
                <slot></slot>
            </span>
        </template>
    </el-popconfirm>
</template>

<script lang="ts" setup>
defineEmits(["onconfirm"])
defineProps({
    text: {
        type: String,
        default: "是否删除当前数据"
    }
})
</script>